//
//  ChooseCollectionViewCell.m
//  大轮胎
//
//  Created by 曹亮 on 2017/3/23.
//  Copyright © 2017年 zyc. All rights reserved.
//

#import "ChooseCollectionViewCell.h"
#import <SDAutoLayout.h>
@implementation ChooseCollectionViewCell
-(instancetype)initWithFrame:(CGRect)frame
{
    if ([super initWithFrame:frame]) {
        
        [self.contentView addSubview:self.image];
        [self.contentView addSubview:self.lable];
        [self.contentView addSubview:self.pricelabel];
        [self.contentView addSubview:self.price];
        
        self.image.sd_layout.topSpaceToView(self.contentView,0).leftSpaceToView(self.contentView,0).widthIs(120).heightIs(130);
        self.lable.sd_layout.leftSpaceToView(self.contentView,0).rightSpaceToView(self.contentView,0).topSpaceToView(self.image,-25);
        self.pricelabel.sd_layout.topSpaceToView(self.lable,-5).leftSpaceToView(self.contentView,1).widthIs(60).heightIs(20);
        self.price.sd_layout.topSpaceToView(self.lable,-5).leftSpaceToView(self.pricelabel,1).widthIs(66).heightIs(20);
    }
    return self;
}
-(UIImageView*)image
{
    if (!_image) {
        _image=[[UIImageView alloc]init];
        
        
        
        
    }
    return _image;
}


-(UILabel*)lable{
    
    if (!_lable) {
        _lable = [[UILabel alloc]init];
        
        
        
        _lable.font = [UIFont systemFontOfSize:12];
        
        _lable.numberOfLines=0;
        
        
        
    }
    return _lable;
}
-(UILabel*)pricelabel
{
    if (!_pricelabel) {
        _pricelabel = [[UILabel alloc]init];
        
        
        
        _pricelabel.font = [UIFont systemFontOfSize:13];
        
        _pricelabel.textColor=[UIColor redColor];
        
        
        
        
    }
    return _pricelabel;
}
-(UILabel*)price
{
    if (!_price) {
        _price=[[UILabel alloc]init];
        
        
        
        _price.textColor = [UIColor lightGrayColor];
        
        _price.font=[UIFont systemFontOfSize:13];
        
        

    }
    
    return _price;
}


@end
